package model.entity.novel;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity
 * @date 2025/6/4
 * @description 小说评分实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class Rating {
    @Schema(description = "评分ID")
    private Long ratingId;

    @Schema(description = "评分用户ID")
    private Long userId;

    @Schema(description = "被评分的小说ID")
    private Long novelId;

    @Schema(description = "评分值，1-5星")
    private Double rating;

    @Schema(description = "评分时间")
    private Date createTime;

    @Schema(description = "评分更新时间")
    private Date updateTime;
}    